﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>xEidToHwnd（根据控件创建顺序获取句柄）</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<P>函数原型：<br>Function xEidToHwnd(Parent As HWND, ClassName As WString Ptr, Eid As Integer) As HWND<br>HWND xEidToHwnd(HWND Parent, wchar* ClassName, int Eid);</P>
<P>VB、VBS、按键精灵声明：<br>Declare Function Lib "xTask.dll" xEidToHwnd(ByVal Parent As Long, ByVal ClassName As String, ByVal Eid As Long) As Long</P>
<P>参数：<br>Parent：父窗口句柄<br>ClassName：窗口类名（支持模糊搜索）<br>Eid：顺序编号</P>
<P>成功返回找到的窗口句柄，失败返回0</P>
<P>说明：<br>本函数可以配合按键小秘书获取窗口创建顺序，查找多级子窗口十分方便。</P>
</body>
</html>